﻿using System;
using System.Linq;
namespace HitchHikersGuideToTheGalaxy.Models
{
    public interface IRatingRepository 
    {
        // Default Add, Delete and save actions
        void Add(Rating rating);
        void Delete(Rating rating);
        void Save();

        // Query
        IQueryable<Rating> FindAllRatings();
        Rating FindRating(int id);
        IQueryable<Rating> FindRatingsGivenByMe(string ssn);
        IQueryable<Rating> FindRatingsGivenToMe(String ssn);
        
    }
}
